import { ref } from 'vue'
import request from '@/utils/request.js'
//查询小节列表
export const selectSectionList = (chapterId) => {
   return request.get('/section/selectList?chapterId=' + chapterId)
}
//根据小节名称模糊查询小节
export const selectSectionListByName = (sectionName) => {
   return request.get('/section/getSectionByName?sectionName=' + sectionName)
}

//查询视频
export const selectVideoList = (courseId) => {
   return request.get('/section/getList?courseId=' + courseId)
}
//查询课件
export const selectCoursewareList = (courseId) => {
   return request.get('/section/getCoursewareSectionList?courseId=' + courseId)
}
//查询作业
export const selectWorkList = (courseId) => {
   return request.get('/section/getTaskSectionList?courseId=' + courseId)
}
//查询资料
export const selectFileList = (courseId) => {
   return request.get('/section/getFileInfoSectionList?courseId=' + courseId)
}